import 'package:flutter/material.dart';

import 'package:beijingbus/pages/home.dart';

import 'util/tools.dart';

void realRunApp() async {
  bool suc = await SpUtil.getInstance();
  print('init-----' + suc.toString());
  runApp(MyApp());
}

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  realRunApp();
}

// ?imageMogr2%2Fthumbnail%2F%21192x130r%2Fgravity%2FCenter%2Fcrop%2F%21192x130%2Fquality%2F100
class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.green,
      ),
      home: HomePage(),
    );
  }
}
